package com.vcc.service.service;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.vcc.data.entity.Risk;
import com.vcc.service.boss.response.risk.RiskVoBoss;

import java.util.List;

public interface RiskService extends IService<Risk> {

    Page<RiskVoBoss> paging(Integer pagingNumber, Integer pageSize, Long targetId, String name, Integer status);


    Boolean updateStatus(Long id, Integer status);

    Boolean updateHasAutoRisk(Long id, Boolean hasAutoRisk);

    Boolean existsByCode(String code);

    Boolean existsByMccValue(Long userId, String mccValue);

    Boolean existsByCountryValue(Long userId, String countryValue);

    Boolean existsByMerchantValue(Long userId, String merchantValue);

    List<Risk> listByCode(String code,Long cardId, Long userId);

    List<Long> listByTargetId(Long targetId);

}
